package com.cxk.hr.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cxk.hr.pojo.Department;

public interface DepartmentMapper {
	/**
	 * 根据DepartmentNumber查询信息
	 * 
	 * @param departmentNumber
	 * @return
	 */
	Department selectByNumber(Integer departmentNumber);

	/**
	 * 分页查询所有部门（倒序）
	 * 
	 * @param pageNo
	 * @return
	 */
	List<Department> selectListByPage(Integer pageNo, Integer pageSize);

	List<Department> selectList();

	Integer findCountDepartment();

	List<Department> findDepartmentByLimit(@Param("currentPageNo") Integer currentPageNo,
			@Param("pageSize") Integer pageSize);

	Integer saveDepartment(Department department);

	Department findDepartmentById(@Param("id") Integer id);

	Integer updateDepartment(Department department);

	Integer deleteDepartment(@Param("id") Integer id);
}
